package com.easy.zhihu.constant;

/**
 * @Packge com.easy.zhihu.constant
 * @Autor linNaibin
 * @Description 知乎 api
 * @Version 1.0
 * @Date 2021/3/16 15:26
 */
public class ZhihuApiConstant {

    // https://www.zhihu.com/api/v4/questions/318020899/feeds?include=data[*].content

    private static final String QUESTIONS_NUMBER = "318020899";

    private static final String ANSWER_LIST = "https://www.zhihu.com/api/v4/questions/" + QUESTIONS_NUMBER + "/feeds?include=data[*].content";

    private static final String ANSWER_DETAIL = "https://www.zhihu.com/api/v4/answers/";

    public static String getAnswerList(int pageNum) {

        return ANSWER_LIST + pageNum;
    }

    public static String getAnswerDetail(String aId) {

        //
        return ANSWER_DETAIL + aId + "?include=data[*].content";
    }


}
